package com.example.inventorywarningdemo.controller;

import com.example.inventorywarningdemo.until.InventoryScheduler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    private InventoryScheduler task;

    @GetMapping("/test-alert")
    public String testAlert() {
        task.scheduledInventoryCheck();
        return "Triggered inventory check";
    }
}